package cn.pet_know.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


@Data
@TableName("user")
@ApiModel(value = "user", description = "实体对象: ")
public class User {
	@ApiModelProperty(value = "")
    @TableField(value = "id")
	@TableId(type = IdType.AUTO)
	private Integer id;
	/** 用户id */
	@ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
	private Long userId;
	/** 用户名称 */
	@ApiModelProperty(value = "用户名称")
	@TableField(value = "user_name")
	private String userName;
	/** 用户头像 */
	@ApiModelProperty(value = "用户头像")
    @TableField(value = "user_avatar")
	private String userAvatar;
	/** 用户邮箱 */
	@ApiModelProperty(value = "用户邮箱")
    @TableField(value = "user_email")
	private String userEmail;
	/** 用户手机 */
	@ApiModelProperty(value = "用户手机")
    @TableField(value = "user_phone")
	private String userPhone;
	/** 用户账号 */
	@ApiModelProperty(value = "用户账号")
    @TableField(value = "user_account")
	private String userAccount;
	/** 用户密码 */
	@ApiModelProperty(value = "用户密码")
    @TableField(value = "user_password")
	private String userPassword;
	@ApiModelProperty(value = "")
    @TableField(value = "created_at")
	private LocalDateTime createdAt;
	@ApiModelProperty(value = "")
    @TableField(value = "updated_at")
	private LocalDateTime updatedAt;
	/** 是否删除: 0 未删除 1 已删除 */
	@ApiModelProperty(value = "是否删除: 0 未删除 1 已删除")
    @TableField(value = "deleted")
	private Integer deleted;
	
}